<template>
  <div class="layout-page">
    <!-- 二级路由出口 -->
    <router-view />

    <van-tabbar v-model="active" route>
      <!-- icon是小图标 -->
      <van-tabbar-item to="/article" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/collect" icon="search">找房</van-tabbar-item>
      <van-tabbar-item to="/like" icon="friends-o">资讯</van-tabbar-item>
      <van-tabbar-item to="/user" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'layout-page',
  data() {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped></style>
